<div class="user_main">
   <div class="user_main_title">Cập nhật thông tin</div>
   <div class="user_main_main">
      <form class="form-horizontal" method="post" action="<?=DOMAIN?>/trang-ca-nhan/action">
         <input type="hidden" name="action" value="changeInfo" />
         <div class="control-group">
            <label class="control-label" for="firstname">Họ</label>
            <div class="controls">
               <input type="text" name="firstname" id="firstname" value="<?=$myuser->firstname?>" placeholder="Họ của bạn"/>
            </div>
         </div>
         <div class="control-group">
            <label class="control-label" for="lastname">Tên</label>
            <div class="controls">
               <input type="text" name="lastname" id="lastname" value="<?=$myuser->lastname?>" placeholder="Tên của bạn"/>
            </div>
         </div>
         <div class="control-group">
            <label class="control-label" for="phone">Điện thoại</label>
            <div class="controls">
               <input type="text" name="phone" id="phone" value="<?=$myuser->phone?>" placeholder="Số điện thoại"/>
            </div>
         </div>
         <div class="control-group">
            <label class="control-label" for="gender">Giới tính</label>
            <div class="controls">
               <select name="gender" id="gender">
                  <option <?=$myuser->gender == 1 ? 'selected="selected"' : ''?> value="1">Nam</option>
                  <option <?=$myuser->gender == 2 ? 'selected="selected"' : ''?> value="2">Nữ</option>
                  <option <?=$myuser->gender == 3 ? 'selected="selected"' : ''?> value="3">Khác</option>
               </select>
            </div>
         </div>
         <div class="control-group">
            <label class="control-label" for="birthday">Ngày sinh</label>
            <div class="controls">
               <input type="text" name="birthday" id="birthday" value="<?=date('d-m-Y',$myuser->birthday)?>" />
            </div>
         </div>
         <div class="control-group">
            <label class="control-label" for="contact">Địa chỉ</label>
            <div class="controls">
               <input type="text" name="contact" id="contact" value="<?=$myuser->contact?>" placeholder="Địa chỉ liên hệ"/>
            </div>
         </div>
         <div class="control-group">
            <div class="controls">
               <button type="submit" class="btn btn-primary">Cập nhật</button>
               <button type="reset" class="btn">Làm lại</button>
            </div>
         </div>
      </form>
   </div>
</div><!-- user_main -->
<script>
$(function(){
	window.prettyPrint && prettyPrint();
	$('#birthday').datepicker({
		format: 'dd-mm-yyyy'
	});
})

</script>